package com.aaa.service;

import com.aaa.dao.MessageDao;
import com.aaa.pojo.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname MessageService
 * @Description TODO
 * @Date 2020/12/7 18:17
 * @Created by 腾飞
 */
@Service
public class MessageService {
    @Autowired
    private MessageDao messageDao;

    public List<Message> queryMessage(Integer uid){
        return messageDao.queryMessage(uid);
    }

    public boolean updateStatus(Integer id){
        return messageDao.updateStatus(id);
    }

}
